package com.meitq.user.common.config.http;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/*
 * 1.也可以不加@Compent,可以将本类注册到其他类中，同样可以完成扫描
 * 2.将配置文件中的信息读取并自动封装成实体类
 */
@Data
@ConfigurationProperties(prefix = "custom.http")
public class HttpProperties {

    private Integer maxConnection = 200;
    private Integer defaultMaxPerRoute = 20;
    private Integer connectTimeout = 4000;
    private Integer connectionTimeout = 4000;
    private Integer soTimeout = 20000;
}
